package com.hqshuke.exchange.instrument.controller;


import com.hqshuke.exchange.instrument.dto.TestDto;
import com.hqshuke.exchange.instrument.service.MainService;
import com.hqshuke.exchange.instrument.vo.TestVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/main")
@Tag(description = "instrument", name = "项目标的物系统")
public class MainController {

    @Autowired
    private MainService mainService;

    @GetMapping("/test")
    @Operation(summary = "get测试")
    public TestVo test(TestDto testDto){
        return mainService.testService(testDto.getRequestMsg());
    }

    @GetMapping("/remote")
    @Operation(summary = "get测试")
    public String testRemote(TestDto testDto){
        return "测试远程调用成功";
    }

}
